package indi.gao;

import com.alibaba.fastjson.JSONObject;
import indi.gao.model.PayTypeEnum;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c)2019$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2019$-09$-17$</P>
 * <P>@version 1.0</P>
 */
public class EnumTest {
    public static void main(String[] args) {
        PayTypeEnum[] values = PayTypeEnum.values();
        for (PayTypeEnum value : values) {
            PayTypeEnum payTypeEnum = PayTypeEnum.valueOf(value.toString());
            System.out.println(JSONObject.toJSONString(payTypeEnum.getPayTypeCode()));
        }
    }
}
